package com.mobilous.client.project.menu;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Image;
import com.mobilous.client.StaticData;
import com.mobilous.client.project.ApplicationBuilder;

public class MenuPageEditor extends Composite {

	public MenuPageEditor() {
	 	AbsolutePanel absolutePanelMenuBar = new AbsolutePanel();
		initWidget(absolutePanelMenuBar);
		absolutePanelMenuBar.setStyleName("gwt-background");
		absolutePanelMenuBar.setSize("1024px", "45px");
		
		Button pushButton = new Button("< Back");
		absolutePanelMenuBar.add(pushButton, 10, 10);
		
		pushButton.addClickHandler(new ClickHandler() {
			public void onClick(ClickEvent event) {
				StaticData.absolutePanelMainBody.clear();
				StaticData.absolutePanelMenuBar.clear();
				new ApplicationBuilder();
			}
		});
		
		Image image = new Image("images/helpicon.png");
		absolutePanelMenuBar.add(image, 982, 10);
		image.setSize("32px", "32px");
	}

}
